<!--
 * @Author: ckk
 * @Date: 2022-08-15 18:21:11
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-07-20 16:36:40
 * @Description: 一行一个
-->
<template>
  <div class="one-content">
    <img
      :src="item.src"
      alt=""
      v-for="(item,index) in datas.imageList"
      :key="index"
      @click="goOhter(item)"
      :style="{ borderRadius: datas.borderRadius + 'px' }">
  </div>
</template>

<script>
export default {
  name: 'oneContent',
  props: {
    datas: Object
  },
  data () {
    return {
    };
  },
  // goDetail
  methods: {
    goOhter (item) {
      this.$emit('goDetail', item);
    }
  }
};
</script>

<style scoped lang="scss">
.one-content{
  margin:0 16px;
  box-sizing: border-box;
  img{
    height: 100%;
    width:100%;
  }
}
</style>
